Deprecate. Ditto.
authorKristian Rietveld <kris@gtk.org>
Fri, 10 Oct 2003 17:18:34 +0000 (17:18 +0000)
committerKristian Rietveld <kristian@src.gnome.org>
Fri, 10 Oct 2003 17:18:34 +0000 (17:18 +0000)
Fri Oct 10 19:10:12 2003  Kristian Rietveld  <kris@gtk.org>

* gtk/gtkcombo.h: Deprecate.
* gtk/gtkoptionmenu.h: Ditto.

* gtk/gtkcombobox.c (gtk_combo_box_size_request),
(gtk_combo_box_size_allocate): Rework, things behave better now. Still
needs some work on requesting enough size when taking the items in
the list into account.

* gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable
deprecated" guards.
* gtk/gtkinputdialog.c: ditto.
* gtk/gtkitemfactory.c: ditto.
* gtk/gtkoptionmenu.c: ditto.

* demos/gtk-demo/menus.c: remove the option menu.
* demos/gtk-demo/sizegroup.c: replace the option menus with
GtkComboBox.
* demos/gtk-demo/textview.c: ditto.
(A general GtkComboBox demo will be added later on).

15 files changed:
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
demos/gtk-demo/menus.c
demos/gtk-demo/sizegroup.c
demos/gtk-demo/textview.c
gtk/gtkcombo.h
gtk/gtkcombobox.c
gtk/gtkfilesel.c
gtk/gtkinputdialog.c
gtk/gtkitemfactory.c
gtk/gtkoptionmenu.c
gtk/gtkoptionmenu.h

index 9666de47dd6e142e4f9010e10a52de5c26942c92..4066cb70b45402605454f40dd11522c38a1319eb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,25 @@
+Fri Oct 10 19:10:12 2003  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtkcombo.h: Deprecate.
+       * gtk/gtkoptionmenu.h: Ditto.
+
+       * gtk/gtkcombobox.c (gtk_combo_box_size_request),
+       (gtk_combo_box_size_allocate): Rework, things behave better now. Still
+       needs some work on requesting enough size when taking the items in
+       the list into account.
+
+       * gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable
+       deprecated" guards.
+       * gtk/gtkinputdialog.c: ditto.
+       * gtk/gtkitemfactory.c: ditto.
+       * gtk/gtkoptionmenu.c: ditto.
+
+       * demos/gtk-demo/menus.c: remove the option menu.
+       * demos/gtk-demo/sizegroup.c: replace the option menus with
+       GtkComboBox.
+       * demos/gtk-demo/textview.c: ditto.
+       (A general GtkComboBox demo will be added later on).
+
 Wed Oct  8 00:06:17 2003  Matthias Clasen  <maclas@gmx.de>
 
        * demos/gtk-demo/ui_manager.c (activate_radio_action): New
index 9666de47dd6e142e4f9010e10a52de5c26942c92..4066cb70b45402605454f40dd11522c38a1319eb 100644 (file)
@@ -1,3 +1,25 @@
+Fri Oct 10 19:10:12 2003  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtkcombo.h: Deprecate.
+       * gtk/gtkoptionmenu.h: Ditto.
+
+       * gtk/gtkcombobox.c (gtk_combo_box_size_request),
+       (gtk_combo_box_size_allocate): Rework, things behave better now. Still
+       needs some work on requesting enough size when taking the items in
+       the list into account.
+
+       * gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable
+       deprecated" guards.
+       * gtk/gtkinputdialog.c: ditto.
+       * gtk/gtkitemfactory.c: ditto.
+       * gtk/gtkoptionmenu.c: ditto.
+
+       * demos/gtk-demo/menus.c: remove the option menu.
+       * demos/gtk-demo/sizegroup.c: replace the option menus with
+       GtkComboBox.
+       * demos/gtk-demo/textview.c: ditto.
+       (A general GtkComboBox demo will be added later on).
+
 Wed Oct  8 00:06:17 2003  Matthias Clasen  <maclas@gmx.de>
 
        * demos/gtk-demo/ui_manager.c (activate_radio_action): New
index 9666de47dd6e142e4f9010e10a52de5c26942c92..4066cb70b45402605454f40dd11522c38a1319eb 100644 (file)
@@ -1,3 +1,25 @@
+Fri Oct 10 19:10:12 2003  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtkcombo.h: Deprecate.
+       * gtk/gtkoptionmenu.h: Ditto.
+
+       * gtk/gtkcombobox.c (gtk_combo_box_size_request),
+       (gtk_combo_box_size_allocate): Rework, things behave better now. Still
+       needs some work on requesting enough size when taking the items in
+       the list into account.
+
+       * gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable
+       deprecated" guards.
+       * gtk/gtkinputdialog.c: ditto.
+       * gtk/gtkitemfactory.c: ditto.
+       * gtk/gtkoptionmenu.c: ditto.
+
+       * demos/gtk-demo/menus.c: remove the option menu.
+       * demos/gtk-demo/sizegroup.c: replace the option menus with
+       GtkComboBox.
+       * demos/gtk-demo/textview.c: ditto.
+       (A general GtkComboBox demo will be added later on).
+
 Wed Oct  8 00:06:17 2003  Matthias Clasen  <maclas@gmx.de>
 
        * demos/gtk-demo/ui_manager.c (activate_radio_action): New
index 9666de47dd6e142e4f9010e10a52de5c26942c92..4066cb70b45402605454f40dd11522c38a1319eb 100644 (file)
@@ -1,3 +1,25 @@
+Fri Oct 10 19:10:12 2003  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtkcombo.h: Deprecate.
+       * gtk/gtkoptionmenu.h: Ditto.
+
+       * gtk/gtkcombobox.c (gtk_combo_box_size_request),
+       (gtk_combo_box_size_allocate): Rework, things behave better now. Still
+       needs some work on requesting enough size when taking the items in
+       the list into account.
+
+       * gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable
+       deprecated" guards.
+       * gtk/gtkinputdialog.c: ditto.
+       * gtk/gtkitemfactory.c: ditto.
+       * gtk/gtkoptionmenu.c: ditto.
+
+       * demos/gtk-demo/menus.c: remove the option menu.
+       * demos/gtk-demo/sizegroup.c: replace the option menus with
+       GtkComboBox.
+       * demos/gtk-demo/textview.c: ditto.
+       (A general GtkComboBox demo will be added later on).
+
 Wed Oct  8 00:06:17 2003  Matthias Clasen  <maclas@gmx.de>
 
        * demos/gtk-demo/ui_manager.c (activate_radio_action): New
index 9666de47dd6e142e4f9010e10a52de5c26942c92..4066cb70b45402605454f40dd11522c38a1319eb 100644 (file)
@@ -1,3 +1,25 @@
+Fri Oct 10 19:10:12 2003  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtkcombo.h: Deprecate.
+       * gtk/gtkoptionmenu.h: Ditto.
+
+       * gtk/gtkcombobox.c (gtk_combo_box_size_request),
+       (gtk_combo_box_size_allocate): Rework, things behave better now. Still
+       needs some work on requesting enough size when taking the items in
+       the list into account.
+
+       * gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable
+       deprecated" guards.
+       * gtk/gtkinputdialog.c: ditto.
+       * gtk/gtkitemfactory.c: ditto.
+       * gtk/gtkoptionmenu.c: ditto.
+
+       * demos/gtk-demo/menus.c: remove the option menu.
+       * demos/gtk-demo/sizegroup.c: replace the option menus with
+       GtkComboBox.
+       * demos/gtk-demo/textview.c: ditto.
+       (A general GtkComboBox demo will be added later on).
+
 Wed Oct  8 00:06:17 2003  Matthias Clasen  <maclas@gmx.de>
 
        * demos/gtk-demo/ui_manager.c (activate_radio_action): New
index eb4df916f71f3174271ef4a557806b3d62386457..9ab61af3500dbea465488c3cf8cfa5a515a39f78 100644 (file)
@@ -19,9 +19,6 @@
  * up when the menu item is selected. Typically, all menu items in a menu bar
  * have submenus.
  *
- * The GtkOptionMenu widget is a button that pops up a GtkMenu when clicked.
- * It's used inside dialogs and such.
- *
  * GtkItemFactory provides a higher-level interface for creating menu bars
  * and menus; while you can construct menus manually, most people don't
  * do that. There's a separate demo for GtkItemFactory.
@@ -130,62 +127,6 @@ do_menus (void)
       gtk_menu_shell_append (GTK_MENU_SHELL (menubar), menuitem);
       gtk_widget_show (menuitem);
       
-      box2 = gtk_vbox_new (FALSE, 10);
-      gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
-      gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE, 0);
-      gtk_widget_show (box2);
-      
-      menu = create_menu (1, FALSE);
-      gtk_menu_set_accel_group (GTK_MENU (menu), accel_group);
-      
-      menuitem = gtk_separator_menu_item_new ();
-      gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
-      gtk_widget_show (menuitem);
-      
-      menuitem = gtk_check_menu_item_new_with_label ("Accelerate Me");
-      gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
-      gtk_widget_show (menuitem);
-      gtk_widget_add_accelerator (menuitem,
-                                 "activate",
-                                 accel_group,
-                                 GDK_F1,
-                                 0,
-                                 GTK_ACCEL_VISIBLE);
-      menuitem = gtk_check_menu_item_new_with_label ("Accelerator Locked");
-      gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
-      gtk_widget_show (menuitem);
-      gtk_widget_add_accelerator (menuitem,
-                                 "activate",
-                                 accel_group,
-                                 GDK_F2,
-                                 0,
-                                 GTK_ACCEL_VISIBLE | GTK_ACCEL_LOCKED);
-      menuitem = gtk_check_menu_item_new_with_label ("Accelerators Frozen");
-      gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
-      gtk_widget_show (menuitem);
-      gtk_widget_add_accelerator (menuitem,
-                                 "activate",
-                                 accel_group,
-                                 GDK_F2,
-                                 0,
-                                 GTK_ACCEL_VISIBLE);
-      gtk_widget_add_accelerator (menuitem,
-                                 "activate",
-                                 accel_group,
-                                 GDK_F3,
-                                 0,
-                                 GTK_ACCEL_VISIBLE);
-      
-      optionmenu = gtk_option_menu_new ();
-      gtk_option_menu_set_menu (GTK_OPTION_MENU (optionmenu), menu);
-      gtk_option_menu_set_history (GTK_OPTION_MENU (optionmenu), 3);
-      gtk_box_pack_start (GTK_BOX (box2), optionmenu, TRUE, TRUE, 0);
-      gtk_widget_show (optionmenu);
-
-      separator = gtk_hseparator_new ();
-      gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 0);
-      gtk_widget_show (separator);
-
       box2 = gtk_vbox_new (FALSE, 10);
       gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
       gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE, 0);
index 930a0d61f8d142fb9b6352d6fae7b8b2688a9347..e2fa1705d2f48a463c8b1bfa50f948a1327a0800 100644 (file)
 
 static GtkWidget *window = NULL;
 
-/* Convenience function to create an option menu holding a number of strings
+/* Convenience function to create a combo box holding a number of strings
  */
 GtkWidget *
-create_option_menu (const char **strings)
+create_combo_box (const char **strings)
 {
-  GtkWidget *menu;
-  GtkWidget *option_menu;
+  GtkWidget *combo_box;
   const char **str;
 
-  menu = gtk_menu_new ();
+  combo_box = gtk_combo_box_new_text ();
   
   for (str = strings; *str; str++)
-    {
-      GtkWidget *menu_item = gtk_menu_item_new_with_label (*str);
-      gtk_widget_show (menu_item);
-
-      gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
-    }
+    gtk_combo_box_append_text (GTK_COMBO_BOX (combo_box), *str);
 
-  option_menu = gtk_option_menu_new ();
-  gtk_option_menu_set_menu (GTK_OPTION_MENU (option_menu), menu);
+  gtk_combo_box_set_active (GTK_COMBO_BOX (combo_box), 0);
 
-  return option_menu;
+  return combo_box;
 }
 
 static void
@@ -49,7 +42,7 @@ add_row (GtkTable     *table,
         const char   *label_text,
         const char  **options)
 {
-  GtkWidget *option_menu;
+  GtkWidget *combo_box;
   GtkWidget *label;
 
   label = gtk_label_new_with_mnemonic (label_text);
@@ -59,10 +52,10 @@ add_row (GtkTable     *table,
                    GTK_EXPAND | GTK_FILL, 0,
                    0,                     0);
   
-  option_menu = create_option_menu (options);
-  gtk_label_set_mnemonic_widget (GTK_LABEL (label), option_menu);
-  gtk_size_group_add_widget (size_group, option_menu);
-  gtk_table_attach (GTK_TABLE (table), option_menu,
+  combo_box = create_combo_box (options);
+  gtk_label_set_mnemonic_widget (GTK_LABEL (label), combo_box);
+  gtk_size_group_add_widget (size_group, combo_box);
+  gtk_table_attach (GTK_TABLE (table), combo_box,
                    1, 2,                  row, row + 1,
                    0,                     0,
                    0,                     0);
index fbec120b4ba190bdab66208f5dbbdd4de097966d..f331ffa9f4aef6042290e9ea2d182986eaa62b7f 100644 (file)
@@ -399,21 +399,11 @@ attach_widgets (GtkTextView *text_view)
         }
       else if (i == 1)
         {
-          GtkWidget *menu_item;
-          GtkWidget *menu;
+          widget = gtk_combo_box_new_text ();
 
-          menu = gtk_menu_new ();
-          
-          widget = gtk_option_menu_new ();
-
-          menu_item = gtk_menu_item_new_with_label ("Option 1");
-          gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
-          menu_item = gtk_menu_item_new_with_label ("Option 2");
-          gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
-          menu_item = gtk_menu_item_new_with_label ("Option 3");
-          gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
-
-          gtk_option_menu_set_menu (GTK_OPTION_MENU (widget), menu);
+          gtk_combo_box_append_text (GTK_COMBO_BOX (widget), "Option 1");
+          gtk_combo_box_append_text (GTK_COMBO_BOX (widget), "Option 2");
+          gtk_combo_box_append_text (GTK_COMBO_BOX (widget), "Option 3");
         }
       else if (i == 2)
         {
index b3cea09f6c8f1163656b04bb985e8a9779e23623..9652dc274144341248ea44b2455f13416a4e2d79 100644 (file)
@@ -24,6 +24,8 @@
  * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
  */
 
+#ifndef GTK_DISABLE_DEPRECATED
+
 #ifndef __GTK_SMART_COMBO_H__
 #define __GTK_SMART_COMBO_H__
 
@@ -117,4 +119,4 @@ void       gtk_combo_disable_activate      (GtkCombo*    combo);
 
 #endif /* __GTK_SMART_COMBO_H__ */
 
-
+#endif /* GTK_DISABLE_DEPRECATED */
index 37115eea316bc509efcdafa5be748f0f55156eff..1c0fbeb848bc336484ff1f119da8c5a686926da1 100644 (file)
@@ -891,14 +891,7 @@ gtk_combo_box_size_request (GtkWidget      *widget,
 
           bin_req.width = MAX (bin_req.width, combo_box->priv->width);
 
-          /* separator */
-          gtk_widget_set_size_request (combo_box->priv->separator,
-                                       -1, bin_req.height);
           gtk_widget_size_request (combo_box->priv->separator, &sep_req);
-
-          /* arrow */
-          gtk_widget_set_size_request (combo_box->priv->arrow,
-                                       -1, bin_req.height);
           gtk_widget_size_request (combo_box->priv->arrow, &arrow_req);
 
           height = MAX (sep_req.height, arrow_req.height);
@@ -909,15 +902,13 @@ gtk_combo_box_size_request (GtkWidget      *widget,
           height += border_width + 1 + xthickness * 2 + 4;
           width += border_width + 1 + ythickness * 2 + 4;
 
-          gtk_widget_set_size_request (combo_box->priv->button, width, height);
-          gtk_widget_size_request (combo_box->priv->button, requisition);
+          requisition->width = width;
+          requisition->height = height;
         }
       else
         {
           GtkRequisition but_req;
 
-          gtk_widget_set_size_request (combo_box->priv->button,
-                                       -1, bin_req.height);
           gtk_widget_size_request (combo_box->priv->button, &but_req);
 
           requisition->width = bin_req.width + but_req.width;
@@ -934,17 +925,15 @@ gtk_combo_box_size_request (GtkWidget      *widget,
 
       if (combo_box->priv->cell_view_frame)
         {
-          requisition->width +=
+          requisition->width += 2 *
             (GTK_CONTAINER (combo_box->priv->cell_view_frame)->border_width +
-             GTK_WIDGET (combo_box->priv->cell_view_frame)->style->xthickness) * 2;
-          requisition->height +=
+             GTK_WIDGET (combo_box->priv->cell_view_frame)->style->xthickness);
+          requisition->height += 2 *
             (GTK_CONTAINER (combo_box->priv->cell_view_frame)->border_width +
-             GTK_WIDGET (combo_box->priv->cell_view_frame)->style->ythickness) * 2;
+             GTK_WIDGET (combo_box->priv->cell_view_frame)->style->ythickness);
         }
 
       /* the button */
-      gtk_widget_set_size_request (combo_box->priv->button,
-                                   -1, requisition->height);
       gtk_widget_size_request (combo_box->priv->button, &button_req);
 
       requisition->height = MAX (requisition->height, button_req.height);
@@ -985,13 +974,12 @@ gtk_combo_box_size_allocate (GtkWidget     *widget,
           /* handle the childs */
           gtk_widget_size_request (combo_box->priv->arrow, &req);
           child.width = req.width;
-          child.height = req.height;
+          child.height = allocation->height - 2 * (child.y - allocation->y);
           child.x += width - req.width;
           gtk_widget_size_allocate (combo_box->priv->arrow, &child);
 
           gtk_widget_size_request (combo_box->priv->separator, &req);
           child.width = req.width;
-          child.height = req.height;
           child.x -= req.width;
           gtk_widget_size_allocate (combo_box->priv->separator, &child);
 
@@ -999,8 +987,6 @@ gtk_combo_box_size_allocate (GtkWidget     *widget,
           child.x = allocation->x + border_width + 1 + xthickness + 2;
           child.width -= child.x;
 
-          gtk_widget_size_request (GTK_BIN (widget)->child, &req);
-          child.height = req.height;
           gtk_widget_size_allocate (GTK_BIN (widget)->child, &child);
         }
       else
@@ -1027,13 +1013,14 @@ gtk_combo_box_size_allocate (GtkWidget     *widget,
       child.x = allocation->x + allocation->width - req.width;
       child.y = allocation->y;
       child.width = req.width;
-      child.height = req.height;
+      child.height = allocation->height;
       gtk_widget_size_allocate (combo_box->priv->button, &child);
 
       /* frame */
       child.x = allocation->x;
       child.y = allocation->y;
       child.width = allocation->width - req.width;
+      child.height = allocation->height;
 
       if (combo_box->priv->cell_view_frame)
         {
@@ -1046,12 +1033,12 @@ gtk_combo_box_size_allocate (GtkWidget     *widget,
           child.y +=
             GTK_CONTAINER (combo_box->priv->cell_view_frame)->border_width +
             GTK_WIDGET (combo_box->priv->cell_view_frame)->style->ythickness;
-          child.width -=
+          child.width -= 2 * (
             GTK_CONTAINER (combo_box->priv->cell_view_frame)->border_width +
-            GTK_WIDGET (combo_box->priv->cell_view_frame)->style->xthickness;
-          child.height -=
+            GTK_WIDGET (combo_box->priv->cell_view_frame)->style->xthickness);
+          child.height -= 2 * (
             GTK_CONTAINER (combo_box->priv->cell_view_frame)->border_width +
-            GTK_WIDGET (combo_box->priv->cell_view_frame)->style->ythickness;
+            GTK_WIDGET (combo_box->priv->cell_view_frame)->style->ythickness);
         }
 
       gtk_widget_size_allocate (GTK_BIN (combo_box)->child, &child);
index 90e8e2b467d5b1ae163b09e805cb58d9d9f42a65..e2fcb465df2a2d409036e9291870547916e99bb5 100644 (file)
 #include "gtkvbox.h"
 #include "gtkmenu.h"
 #include "gtkmenuitem.h"
-#include "gtkoptionmenu.h"
 #include "gtkdialog.h"
 #include "gtkmessagedialog.h"
 #include "gtkdnd.h"
 #include "gtkeventbox.h"
 
+#undef GTK_DISABLE_DEPRECATED
+#include "gtkoptionmenu.h"
+#define GTK_DISABLE_DEPRECATED
+
 #define WANT_HPANED 1
 #include "gtkhpaned.h"
 
index 1e59f643e739e9e763f36aaf3cb7f88bbe6432c8..cbbda5ca95b31e82724e65a75cbf7c258a885ae9 100644 (file)
 #include "gtkmenu.h"
 #include "gtkmenuitem.h"
 #include "gtknotebook.h"
-#include "gtkoptionmenu.h"
 #include "gtkscrolledwindow.h"
 #include "gtkstock.h"
 #include "gtktable.h"
 #include "gtkvbox.h"
 
+#undef GTK_DISABLE_DEPRECATED
+#include "gtkoptionmenu.h"
+#define GTK_DISABLE_DEPRECATED
+
 #include "gtkintl.h"
 
 typedef struct _GtkInputDialogPrivate GtkInputDialogPrivate;
index 6e79c5e33ffaa5dd9434c5a31bfbef2435ee21b9..5fcb63eeb4172fa162da2735a49923dc4175eade 100644 (file)
@@ -30,7 +30,6 @@
 #include       "config.h"
 
 #include       "gtkitemfactory.h"
-#include       "gtk/gtkoptionmenu.h"
 #include       "gtk/gtkmenubar.h"
 #include       "gtk/gtkmenu.h"
 #include       "gtk/gtkmenuitem.h"
 #endif
 #include       <stdio.h>
 
+#undef GTK_DISABLE_DEPRECATED
+#include       "gtk/gtkoptionmenu.h"
+#define GTK_DISABLE_DEPRECATED
+
 /* --- defines --- */
 #define                ITEM_FACTORY_STRING     ((gchar*) item_factory_string)
 #define                ITEM_BLOCK_SIZE         (128)
index afab0ab130dba37f7443aa74229b215945f793ee..2c8dac12367a5bf024552907710432de677ddb5d 100644 (file)
 #include "gtkintl.h"
 #include "gtkmenu.h"
 #include "gtkmenuitem.h"
-#include "gtkoptionmenu.h"
 #include "gtkmarshalers.h"
 #include "gdk/gdkkeysyms.h"
 
+#undef GTK_DISABLE_DEPRECATED
+#include "gtkoptionmenu.h"
+#define GTK_DISABLE_DEPRECATED
 
 #define CHILD_LEFT_SPACING        4
 #define CHILD_RIGHT_SPACING       1
index e692ca0882a69f1002ff000db038d902b34b0eef..41d4d9c482bfa30420b5e963359f49e592502869 100644 (file)
@@ -24,6 +24,8 @@
  * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
  */
 
+#ifndef GTK_DISABLE_DEPRECATED
+
 #ifndef __GTK_OPTION_MENU_H__
 #define __GTK_OPTION_MENU_H__
 
@@ -90,3 +92,5 @@ void       gtk_option_menu_set_history (GtkOptionMenu *option_menu,
 
 
 #endif /* __GTK_OPTION_MENU_H__ */
+
+#endif /* GTK_DISABLE_DEPRECATED */